import { JSEncrypt } from 'jsencrypt'

export const encrypt = (publicKey:string,password:string) => {
    let encrypt = new JSEncrypt()
    encrypt.setPublicKey(publicKey)
    let data = encrypt.encrypt(password)
    return data
}